package com.zcxy360.sandtable.domain;

import com.zcxy360.sandtable.domain.CourseTeam;
import com.zcxy360.sandtable.domain.CourseTeamExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CourseTeamMapper {
	
//	
	CourseTeam selectByPrimaryKeyWithCascade(Integer teamId);
	List<CourseTeam> list(@Param("courseTeam") CourseTeam courseTeam,@Param("key") String key,@Param("orderByClause") String orderByClause);
	List<CourseTeam> listWithCascade(@Param("courseTeam") CourseTeam courseTeam,@Param("key") String key,@Param("orderByClause") String orderByClause);
	int deleteBatch(int[] teamIds);
	void create(@Param("courseId")Integer courseId,@Param("teamCount")Integer teamCount);
//
	
    long countByExample(CourseTeamExample example);

    int deleteByExample(CourseTeamExample example);

    int deleteByPrimaryKey(Integer teamId);

    int insert(CourseTeam record);

    int insertSelective(CourseTeam record);

    List<CourseTeam> selectByExample(CourseTeamExample example);

    CourseTeam selectByPrimaryKey(Integer teamId);

    int updateByExampleSelective(@Param("record") CourseTeam record, @Param("example") CourseTeamExample example);

    int updateByExample(@Param("record") CourseTeam record, @Param("example") CourseTeamExample example);

    int updateByPrimaryKeySelective(CourseTeam record);

    int updateByPrimaryKey(CourseTeam record);
}